package com.zygh.lz.service;

import com.zygh.lz.entity.duty.DutySchedule;
import com.zygh.lz.vo.ResultBean;

import java.util.List;

/**
 * @author lee
 */
public interface DutyScheduleService {
    ResultBean find(DutySchedule dutySchedule);

    ResultBean add(DutySchedule dutySchedule);

    ResultBean update(DutySchedule dutySchedule);

    ResultBean delete(DutySchedule dutySchedule);

    DutySchedule findOne(int modeCode, int shiftop);

    List<DutySchedule> findOneByModeCode(Integer modeCode);

    /**
     * 根据modeCode 查询详情
     * @param mode modeCode
     * @return ResultBean
     */
    ResultBean findMode(String mode);
}
